﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Mini/Mmonitor.Master" AutoEventWireup="true"
    CodeBehind="MonitorIndex.aspx.cs" Inherits="MobileManager.Mini.MonitorIndex" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script language="javascript" type="text/javascript" src="../Js/UCcalendar/WdatePicker.js"></script>

    <style type="text/css">
        .lbCursor
        {
            cursor: pointer;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <div style="width: 95%; text-align: center; font-size: 12px; margin-top: 15px;">
        <div style="width: 100%; text-align: center;">
            <table>
                <tr>
                    <td>
                        查询条件&nbsp;&nbsp;
                    </td>
                    <td style="text-align: right;">
                        SP：
                    </td>
                    <td style="text-align: left;">
                        <asp:DropDownList ID="ddlSP" runat="server" CssClass="dropnormal">
                        </asp:DropDownList>
                    </td>
                    <td style="text-align: right;">
                        通道号码：
                    </td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtspnum" runat="server" CssClass="txtBoxNormal" MaxLength="50"></asp:TextBox>
                    </td>
                    <td style="text-align: right;">
                        通道指令<span style="color: Red;">*</span>
                    </td>
                    <td style="text-align: left;" colspan="3">
                        <asp:TextBox ID="txtOrder" runat="server" CssClass="txtBoxNormal" MaxLength="200"
                            Width="270px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="text-align: right;">
                        运营商：
                    </td>
                    <td style="text-align: left">
                        <asp:DropDownList ID="ddlODEP" runat="server" CssClass="dropnormal">
                            <asp:ListItem Text="全部" Value="-1" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="移动" Value="1"></asp:ListItem>
                            <asp:ListItem Text="联通" Value="2"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        状态：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlStatus" runat="server">
                            <asp:ListItem Text="全部" Value="-1"></asp:ListItem>
                            <asp:ListItem Value="0" Text="启用" Selected="True"></asp:ListItem>
                            <asp:ListItem Value="1" Text="禁用"></asp:ListItem>
                            <asp:ListItem Value="2" Text="当天禁用"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style="text-align: right;">
                        日期：
                    </td>
                    <td style="text-align: left;">
                        <input class="Wdate" id="inputDateFrom" name="inputDateStart" runat="server" type="text"
                            onclick="WdatePicker()" />
                    </td>
                    <td>
                        <asp:Button ID="btnQuery" runat="server" Text="查 询" CssClass="button_green" Width="70px"
                            OnClick="btnQuery_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div style="text-align: left; width: 100%">
            <asp:Label ID="lbCount" runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;<span
                style="color: Red">数据每5分钟更新一次！</span>
        </div>
        <asp:GridView ID="GVinfo" runat="server" AutoGenerateColumns="False" CssClass="reason_box"
            Font-Size="12px" CellPadding="0" BorderWidth="0px" BorderColor="#A6E1FF" Width="100%"
            OnRowDataBound="GVinfo_RowDataBound" OnRowCancelingEdit="GVinfo_RowCancelingEdit"
            OnRowUpdating="GVinfo_RowUpdating" OnRowEditing="GVinfo_RowEditing" AllowPaging="false">
            <Columns>
                <asp:TemplateField HeaderText="通道ID">
                    <ItemTemplate>
                        <asp:Label ID="lbID" runat="server" Text='<%# Bind("ChannelID") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="通道名称">
                    <ItemTemplate>
                        <asp:Label ID="lbName" runat="server" Text='<%# Bind("ChannelName") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="运营商">
                    <ItemTemplate>
                        <asp:Label ID="lbODEPName" runat="server" Text='<%# Bind("CstCode") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="状态">
                    <ItemTemplate>
                        <asp:Label ID="lbStatus" runat="server" Text='<%#Eval("Status") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="计费类型">
                    <ItemTemplate>
                        <asp:Label ID="lbChargeType" runat="server" Text='<%# Bind("ChargeType") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="通道号码">
                    <ItemTemplate>
                        <asp:Label ID="lbChannelNumber" runat="server" Text='<%#Eval("ChannelNumber") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="通道指令">
                    <ItemTemplate>
                        <asp:Label ID="lbChannelOrder" runat="server" Text='<%#Eval("ChannelOrder") %>' CssClass="lbCursor"
                            ToolTip='<%# Bind("ChannelOrder") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="返回号码">
                    <EditItemTemplate>
                        <asp:TextBox ID="txtReceiveChannelNumber" runat="server" Text='<%# Bind("ReceiveChannelNumber") %>'
                            TextMode="MultiLine" MaxLength="100" CssClass="txtBoxNormal" Height="40px" Width="180px"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbReceiveChannelNumber" runat="server" Text='<%#Eval("ReceiveChannelNumber") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="返回指令">
                    <EditItemTemplate>
                        <asp:TextBox ID="txtReceiveChannelOrder" runat="server" Text='<%# Bind("ReceiveChannelOrder") %>'
                            TextMode="MultiLine" Height="40px" Width="180px" MaxLength="120" CssClass="txtBoxNormal"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbReceiveChannelOrder" runat="server" Text='<%#Eval("ReceiveChannelOrder") %>'
                            CssClass="lbCursor" ToolTip='<%# Bind("ReceiveChannelOrder") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="发送条数">
                    <ItemTemplate>
                        <asp:Label ID="lbSendCount" runat="server" Text='<%#Eval("SendCount") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="返回条数">
                    <ItemTemplate>
                        <asp:Label ID="lbReceiveCount" runat="server" Text='<%#Eval("ReceiveCount") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="转换率">
                    <ItemTemplate>
                        <asp:Label ID="lbRateInfo" runat="server" Text='<%#Eval("RateInfo") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="管理">
                    <EditItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                            Text="更新"></asp:LinkButton>
                        &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                            Text="取消"></asp:LinkButton><asp:HiddenField ID="HF2" runat="server" Value='<%#Eval("ChannelID") %>' />
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit"
                            Text="编辑"></asp:LinkButton>
                        <asp:HiddenField ID="HF1" runat="server" Value='<%#Eval("ChannelID") %>' />
                    </ItemTemplate>
                    <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" Width="80px" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <span style="color: Red; font-weight: bold;">没有数据！</span>
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
</asp:Content>
